package com.leo.ibatis.demo.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.leo.ibatis.demo.criteria.SequenceCriteria;
import com.leo.ibatis.demo.domain.Sequence;

public interface SequenceDao {

	void insert(Sequence sequence) throws DataAccessException;

	int update(Sequence sequence) throws DataAccessException;

	int delete(String name) throws DataAccessException;

	Sequence select(String name) throws DataAccessException;

	List<Sequence> list(SequenceCriteria sequenceCriteria) throws DataAccessException;
	
	List<Sequence> listOnPage(SequenceCriteria sequenceCriteria) throws DataAccessException;
	
	int count(SequenceCriteria sequenceCriteria) throws DataAccessException;

}
